﻿<%@ Page Language="C#" MasterPageFile="~/Admin/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="TimKiemAdmin.aspx.cs" Inherits="DM.Web.Admin.TimKiemAdmin" Title="Công ty cổ phần Đường Man - Duong Malt JSC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3 style="color:#145066; font-size: 14px;">Kết quả tìm kiếm</h3>
    <hr style="color:#f1f1f1;" />
    <br />
    <asp:GridView ID="gvSearch" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Width="100%" AllowSorting="false" OnPageIndexChanging="gvSearch_PageIndexChanging" OnSorting="gvSearch_Sorting" PageSize="5">
        <RowStyle BackColor="White" ForeColor="#003399" />
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>                    
                    <asp:Image id="imgDaiDien" runat="server" Height="80px" Width="80px" CssClass="imgSearch" ImageUrl='<%#"../"+GetImage(Eval("Ma").ToString()) %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ti&#234;u đề" SortExpression="TieuDe">
                <ItemTemplate>
                    <b><asp:HyperLink ID="hlTieuDe" Font-Underline="true" Font-Strikeout="false" ForeColor="#145066" runat="server" NavigateUrl='<%#"../TrangTinTuc.aspx?id="+Eval("Ma") %>' Text='<%#Eval("MoTa")%>'></asp:HyperLink></b>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Mô tả" SortExpression="MoTa">
                <ItemTemplate>
                    <asp:Label ID="lbMota" runat="server" Text='<%#Eval("MoTa") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
    </asp:GridView>
</asp:Content>
